home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / grapdrvs / makefile.ami < prev    next >
Encoding:
Makefile  |  1993-12-30  |  3.5 KB  |  127 lines

  1. #
  2. # This is the make file for the graphic driver's subdirectory.
  3. #
  4. #                Gershon Elber, June 1993
  5. #
  6.  
  7. #-----
  8. #
  9. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  10. # is sourced from several directories relative path specification will
  11. # be simple wrong.
  12. #
  13.  
  14. SRC_DIR = Work:T/Irit
  15. #
  16. # All libraries created will be installed into the LIB_DIR directory.
  17. #
  18. LIB_DIR = $(SRC_DIR)/lib
  19.  
  20. #
  21. # All includes files associated with the installed libraries will be
  22. # installed into the INC_DIR directory.
  23. #
  24. INC_DIR = $(SRC_DIR)/inc
  25.  
  26. #
  27. # All binaries created will be installed into the BIN_DIR directory.
  28. #
  29. BIN_DIR = $(SRC_DIR)/bin
  30.  
  31. #
  32. # Uncomment the correct set of variables to be used or modify it for
  33. # your system.
  34. #
  35. # -D flags:
  36. #
  37. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  38. #
  39. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  40. #    be used.
  41. #
  42. #  Emulation to the following function are available by defining the
  43. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  44. # -DGETCWD - if getcwd is not defined in this system.
  45. # -DSTRSTR - if strstr is not defined in this system.
  46. # -DSTRDUP - if strdup is not defined in this system.
  47. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  48. #
  49. # -DTIMES - if times is defined in your system, otherwise uses time.
  50. #
  51. # -DRAND - if the (s)rand random number generator exists.
  52. # -DRAND48 - ?rand48 random number generators exists.
  53. #    If non of RAND or RAND48 are defined, (s)random is used.
  54. #
  55. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  56. #
  57. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  58. #    varargs.h.
  59. #
  60. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  61. #
  62. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  63. #
  64. # Other, possibly useful defines (for c code development):
  65. #
  66. # -DDEBUG - for some debugging functions in the code (that can be invoked
  67. #        from a debugger).
  68. #
  69.  
  70. #
  71. # Flags for Amiga using gcc
  72. #
  73. CC = gcc
  74. DFLAGS = -Dmain=mymain -DTIMES
  75. CFLAGS = $(DFLAGS) -m68040 -m68881
  76. MORELIBS = $(LIB_DIR)/libamg.a
  77. GRAPDRVS = nuldrvs amidrvs
  78.  
  79. #
  80. # Default rule for compilation.
  81. #
  82. .c.o:
  83.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  84.  
  85. #
  86. # All libraries.
  87. LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc #-lgif
  88. #-----
  89.  
  90. all: $(GRAPDRVS)
  91.  
  92. nuldrvs: nuldrvs.o gen_grap.o
  93.     $(CC) $(CFLAGS) -s -o nuldrvs nuldrvs.o gen_grap.o\
  94.     $(LIBS) $(MORELIBS) $(GRAPGLLIBS) -lm
  95.  
  96. amidrvs: amidrvs.o gen_grap.o draw_obj.o draw_srf.o draw_crv.o drawpoly.o\
  97.          drawln3d.o drawptvc.o
  98.     $(CC) $(CFLAGS) -s -o amidrvs amidrvs.o gen_grap.o draw_obj.o\
  99.         draw_srf.o draw_crv.o drawpoly.o drawln3d.o drawptvc.o\
  100.         $(LIBS) $(MORELIBS) $(GRAPGLLIBS) -lm
  101.  
  102. #XGLDRVS_DRAW = draw_crv.o draw_srf.o draw_obj.o
  103. #xgldrvs: xgldrvs.o gen_grap.o $(XGLDRVS_DRAW)
  104. #    $(CC) $(CFLAGS) -o xgldrvs xgldrvs.o gen_grap.o $(XGLDRVS_DRAW) \
  105. #    $(LIBS) $(MORELIBS) $(GRAPGLLIBS) -lm
  106.  
  107. #XGLADAP_DRAW = draw_crv.o draw_obj.o
  108. #xgladap: xgladap.o gen_grap.o $(XGLADAP_DRAW)
  109. #    $(CC) $(CFLAGS) -o xgladap xgladap.o gen_grap.o $(XGLADAP_DRAW) \
  110. #    $(LIBS) $(MORELIBS) $(GRAPGLLIBS) -lm
  111.  
  112. #X11DRVS_DRAW = drawln3d.o drawptvc.o drawpoly.o draw_crv.o draw_srf.o \
  113. #    draw_obj.o
  114. #x11drvs: x11drvs.o gen_grap.o $(X11DRVS_DRAW)
  115. #    $(CC) $(CFLAGS) -o x11drvs x11drvs.o gen_grap.o $(X11DRVS_DRAW) \
  116. #    $(LIBS) $(MORELIBS) $(GRAPX11LIBS) -lm
  117.  
  118. install: $(GRAPDRVS)
  119.     Copy $(GRAPDRVS) $(BIN_DIR)
  120.     Delete $(GRAPDRVS)
  121.     #Copy nuldrvs.cfg $(BIN_DIR)
  122.     Copy amidrvs.cfg $(BIN_DIR)
  123.     Copy iritgrap.h $(INC_DIR)
  124.  
  125. # Dependencies starts here - do not touch, generated automatically.
  126.  
  127.